#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main() {
    printf("[1] crisps\n[2] popcorn\n[3] chocolate\n[4] cola\n[0] exit\n");
    int i, x;
    for (i = 0; i < 5; i++) {
        scanf("%d", &x);
        if (x == 0)
            break;
        else {
            switch (x) 
            {

            case 1:
                printf("price = 3.0\n"); 
                break;
            case 2:
                printf("price = 2.5\n");
                break;
            case 3:
                printf("price = 4.0\n"); 
                break;
            case 4:
                printf("price = 3.5\n"); 
                break;
            default:
                printf("price = 0.0\n");
                break;
            }
        }
    }
    printf("Thanks");
    return 0;
}
